package cn.example.swagger_demo.controller.testController;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.*;

@Api(tags={"普通测试类接口"})
@RestController
public class TestController {

    @GetMapping("/add")
    @ApiOperation(value = "swagger测试类-增")
    public String add(){
        return "HelloWorld";
    }

    @ApiOperation(value = "swagger测试类-删")
    @PostMapping("/del")
    public String del(){
        return "HelloWorld";
    }

    @ApiOperation(value = "swagger测试类-改")
    @DeleteMapping("/update")
    public String update(){
        return "HelloWorld";
    }

    @ApiOperation(value = "swagger测试类-查")
    @PutMapping("/query")
    public String query(){
        return "HelloWorld";
    }


}
